'use strict'
// alert('这是来自外部js的信息')

var name = 'zanzaner';
// ler age = '18';
const id = '1005';
var health = 100;
var height;
// color = 'red'；
// let 3d ='3'；
console.log(namem, age, ID);
// ID =1005；
// age = age + 1；
// console.log(age)；
typeof ('5');

if (age > 16) {
    console.log('可使用身份证独立开户');
} else {
    console.log('你处于家长监护期');
}

for (let index = 0; index < 10; index++) {
    console.log(index)

}
age = 21;
while (age < 45) {
    console.log('你还可以熬熬夜');
    if (age = 40 || health < 30) {
        console.log('ICU在召唤你');
        break;
    }
    age++;
    health = health - 9;

}

p('我在定义之前被调用了');

function p(message) {
    console.log(message);
}

p('世界人民大团结万岁');

function score(name) {
    score = 99;
    return score;
}

p(score('zanzaner'));

// var person = {};
var school = new Object();

var person = {
    'age': 0,
    'name': '赞赞',
    'iq': 200,
    say: function (message) {
        return message,
    };
};

p(person.age);

for (const key in person) {
    console.log(key.person[key])
}

let a = [1, 2, 3, 4,];
let b = new Array(5, 6, 7, 8);
let c = new Array(10);